/**
 * 应用程序Store获取器
 */
 const getters = {
  isRelease: state => state.settings.isRelease,
  appTitle: state => {
    if (state.settings.isRelease) return state.settings.appTitle;
    else return `${state.settings.appTitle} [TEST]`;
  },
  sidebarLogo: state => state.settings.sidebarLogo,
  collapseMenu: state => state.settings.collapseMenu,
  openedUnique: state => state.settings.openedUnique,
  token: state => state.system.token, // Token
  refreshtoken: state => state.system.refreshtoken, // 刷新Token
  tokentype: state => state.system.tokentype, // Token类型
  authtime: state => state.system.authtime, // 授权时间戳
  expiresat: state => state.system.expiresat, // 过期时间跨度[TimeSpan：60s]
  islogin: state => state.system.islogin, // 是否登陆
  accid: state => state.system.accid,
  userid: state => state.system.userid,
  username: state => state.system.username,
  nickname: state => state.system.nickname,
  roles: state => state.system.roles,
  usecases: state => state.system.usecases,
  avatar: state => state.system.avatar,
  menulist: state => state.permission.menulist,          //菜单
  routes: state => state.permission.routes
};


export default getters;